﻿using HBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace hCommand {
    public abstract class LocSelectionSingle:LocSelection {

        protected override CoreWhLoc select<CS>(List<CoreWhLoc> locList,long goodDiff,CS cs) {

            int len = locList.Count();
            for (int i = 0;i < len;i++) {
                CoreWhLoc shallow = locList[i];
                if (shallow.countStock == 0) {
                    return shallow;
                }
            }
            return null;

        }

    }
}
